package com.lanou.service;

import com.lanou.bean.DiaryFinishOrder;
import com.lanou.bean.DiaryPhoto;
import com.lanou.bean.User;
import com.lanou.utils.AjaxResult;

import java.util.List;

/**
 * Created by dllo on 18/3/16.
 */

public interface DiaryService {
    void insertDiary(String writeDiary, String stage, String diaryLabel, String date,
                     DiaryPhoto[] diaryPhotos,DiaryFinishOrder[] finishOrders);

    void insertNewDiary(String diaryTitle,String houserType,
                        String area,String city,String style,String decorateWay,
                        String villageName,String companyName);

    AjaxResult insertDiaryComments(String commentContent, Integer diary_id);

    AjaxResult insertRepeatContent(String repeatToUserNick,String commentContent,Integer commenter_id);

    User selectAllDiary();

    List<DiaryFinishOrder> getDiaryFinishOrderId(Integer id);

    double sumPrice(Integer newDiaryId);
}
